package com.mengxin.secondkill.service;

import com.mengxin.secondkill.domain.Goods;
import com.mengxin.secondkill.message.req.AddGoodsReq;
import com.mengxin.secondkill.message.req.BuyGoodsReq;
import com.mengxin.secondkill.message.req.GoodsStockCacheReq;
import com.mengxin.secondkill.message.resp.AddGoodsResp;
import com.mengxin.secondkill.message.resp.BuyGoodsResp;

/**
 * @author mengxin
 * @date 2020/12/11 17:49
 */
public interface GoodsService {

    AddGoodsResp addGoods(AddGoodsReq req);

    BuyGoodsResp buyGoods(BuyGoodsReq req) throws InterruptedException;

    void goodsStockCache(GoodsStockCacheReq req);
}
